import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/basematerialwidgetsdemo.dart';

class LinearprogressDemo extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('LinearProgressIndicator'),
        centerTitle: true,
      ),
      body: Column(
        children: <Widget>[
          Container(
            padding: EdgeInsets.all(10),
            child:  LinearProgressIndicator(),
          ),
          TextWidget('设置进度具体值：'),
          Container(
            padding: EdgeInsets.all(10),
            child: LinearProgressIndicator(value: 0.4,),
          ),
          TextWidget('设置进颜色：'),
          Container(
            padding: EdgeInsets.all(10),
            child: LinearProgressIndicator(
              backgroundColor: Colors.grey,
              valueColor: AlwaysStoppedAnimation<Color>(Colors.pink),
              semanticsLabel: '语义标签',
              semanticsValue: '语义值',
            ),
          ),

        ],
      )
    );
  }

}